package com.go10.catalog.pojo;

import java.util.Arrays;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;



public class Catalog {
	private Long id;

	private String name;

	private String code;

	private Long pid;

	private Boolean parent;

	private Integer order1;

	private Date gmtCreate;

	private Date gmtModified;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name == null ? null : name.trim();
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code == null ? null : code.trim();
	}

	public Long getPid() {
		return pid;
	}

	public void setPid(Long pid) {
		this.pid = pid;
	}

	public Boolean getParent() {
		return parent;
	}

	public void setParent(Boolean parent) {
		this.parent = parent;
	}

	public Integer getOrder1() {
		return order1;
	}

	public void setOrder1(Integer order1) {
		this.order1 = order1;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	public Date getGmtModified() {
		return gmtModified;
	}

	public void setGmtModified(Date gmtModified) {
		this.gmtModified = gmtModified;
	}

	public Catalog(String name, String code, Long pid, Boolean parent, Integer order1, Date gmtCreate,
			Date gmtModified) {
		super();
		this.name = name;
		this.code = code;
		this.pid = pid;
		this.parent = parent;
		this.order1 = order1;
		this.gmtCreate = gmtCreate;
		this.gmtModified = gmtModified;
	}

	public Catalog() {
		super();
	}

	@Override
	public String toString() {
		return "Catalog [id=" + id + ", name=" + name + ", code=" + code + ", pid=" + pid + ", parent=" + parent
				+ ", order1=" + order1 + ", gmtCreate=" + gmtCreate + ", gmtModified=" + gmtModified + "]";
	}

}